import * as bcrypt from 'bcryptjs';

// const plainPassword = Math.random().toString(36).slice(2, 12); // 随机生成一个密码
const plainPassword = "ndunnt3zr8";
bcrypt.compare("ndunnt3zr8", "$2b$10$22mMSV8nHdlIlhtFicUccegWEUku8SehGm9BhhUHjnDrXxQo./cti").then(res2 => {
    console.log("对比结果:", res2);
});